﻿<%@ Page Language="C#" MasterPageFile="~/Home/HomePage.master" AutoEventWireup="true"
    CodeFile="MyScores.aspx.cs" Inherits="Home_MyScores" %>

<%@ Import Namespace="Shopping.Common" %>
<%@ Import Namespace="Shopping.Model" %>
<asp:Content ID="Head" ContentPlaceHolderID="Head" runat="Server">
    <title>我的积分</title>
    <script type="text/javascript" src="/home/js/myscores.js"></script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="Server">

   <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table2">
                <tr  class="HeadTitle">
                    <th  align="center" ">日期</th>
                    <th  align="center" >获取积分</th>
                    <th  align="center" >消耗积分</th>
                    <th  align="center" >方式</th>
                    <th  align="center" >说明</th>
                </tr>
                <%if (listOfScores != null)
                  {
                      for (var i = 0; i < listOfScores.Count; i++)
                      {
                          UserScoreRecords l = listOfScores[i];
                          %>
                <tr   >
                    <td >
                        <%=l.RecordDate.ToString("yyyy-MM-dd")%>
                    </td>
                    <td >
                        <%=l.PayScores >0? l.PayScores.ToString():"-"%>
                    </td>
                    <td >
                        <%=l.PayScores <0? l.PayScores.ToString():"-"%>
                    </td>
                    <td >
                        <%=l.RecordType%>
                    </td>
                    <td >
                        <%=l.Memo%>
                    </td>
                </tr>
                <%
                    }
                      %>
                <tr  >
                   <td colspan="5" align="center" class="pl5">
                   <span class="page2" >
         <%=Utility.GetPageLine(Utility.GetWebPageUrlNoCurPage(), asPage.CurPage, asPage.PageSize, 10, asPage.TotalCount)%>        </span>
                   </td>
                </tr>
               <%
                  }
                  else
                  { %>
                <tr  >
                   <td colspan="5" align="center"  class="pl5">[ 您目前还没有任何积分记录！]</td>
                </tr>

                  <%} %>
            </table>
</asp:Content>
